/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sys.donto.telas;

import java.util.List;
import javax.swing.JOptionPane;
import sys.donto.cidade.Cidade;
import sys.donto.cidade.CidadeDAO;
import sys.donto.cidade.CidadeTableModel;
import sys.donto.paciente.Paciente;
import sys.donto.paciente.PacienteDAO;
import sys.donto.paciente.PacienteTableModel;
import sys.donto.util.Util;

/**
 *
 * @author JOABB
 */
public class telaPaciente extends javax.swing.JDialog {
    private Paciente paciente;
    Paciente pacientePesquisado = new Paciente();

    /**
     * Creates new form telaPaciente
     */
    public telaPaciente() { //METODO CONSTRUTOR
        setModal(true);
        initComponents();
        setLocationRelativeTo(null);
        limpaCampos();
        
        setTitle("sysDONTO - Cadastro de Pacientes"); //Define nome no titulo da tela
    }
    
     
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollBar1 = new javax.swing.JScrollBar();
        jPanel1 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        tfNome = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        btPesquisarCidade = new javax.swing.JButton();
        btAdicionarCidade = new javax.swing.JButton();
        tfEndereco = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        tfBairro = new javax.swing.JTextField();
        tfCidade = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        tfRG = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        tfEmail = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        tfCPF = new javax.swing.JFormattedTextField();
        tfCEP = new javax.swing.JFormattedTextField();
        tfTelefone = new javax.swing.JFormattedTextField();
        jLabel1 = new javax.swing.JLabel();
        btSair1 = new javax.swing.JButton();
        btNovo1 = new javax.swing.JButton();
        btSalvar1 = new javax.swing.JButton();
        btPesquisar1 = new javax.swing.JButton();
        btExcluir1 = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jLFundo = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setLayout(null);

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel5.setText("NOME*:");
        jPanel1.add(jLabel5);
        jLabel5.setBounds(30, 130, 60, 15);

        tfNome.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfNome.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfNomeActionPerformed(evt);
            }
        });
        jPanel1.add(tfNome);
        tfNome.setBounds(90, 130, 610, 20);

        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel6.setText("CIDADE*:");
        jPanel1.add(jLabel6);
        jLabel6.setBounds(260, 220, 60, 15);

        jLabel7.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel7.setText("CPF:");
        jPanel1.add(jLabel7);
        jLabel7.setBounds(50, 160, 40, 15);

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel8.setText("END.*:");
        jPanel1.add(jLabel8);
        jLabel8.setBounds(40, 190, 50, 15);

        btPesquisarCidade.setBackground(new java.awt.Color(0, 153, 153));
        btPesquisarCidade.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btPesquisarCidade.setForeground(new java.awt.Color(255, 255, 255));
        btPesquisarCidade.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sys/donto/imagens/Search 16.png"))); // NOI18N
        btPesquisarCidade.setToolTipText("Pesquisar Estado");
        btPesquisarCidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btPesquisarCidadeActionPerformed(evt);
            }
        });
        jPanel1.add(btPesquisarCidade);
        btPesquisarCidade.setBounds(620, 220, 33, 25);

        btAdicionarCidade.setBackground(new java.awt.Color(0, 153, 153));
        btAdicionarCidade.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btAdicionarCidade.setForeground(new java.awt.Color(255, 255, 255));
        btAdicionarCidade.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sys/donto/imagens/add-16.png"))); // NOI18N
        btAdicionarCidade.setToolTipText("Cadastrar Estado");
        btAdicionarCidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btAdicionarCidadeActionPerformed(evt);
            }
        });
        jPanel1.add(btAdicionarCidade);
        btAdicionarCidade.setBounds(660, 220, 33, 25);

        tfEndereco.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfEndereco.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfEnderecoActionPerformed(evt);
            }
        });
        jPanel1.add(tfEndereco);
        tfEndereco.setBounds(90, 190, 610, 20);

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel9.setText("BAIRRO*:");
        jPanel1.add(jLabel9);
        jLabel9.setBounds(20, 220, 70, 15);

        tfBairro.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfBairro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfBairroActionPerformed(evt);
            }
        });
        jPanel1.add(tfBairro);
        tfBairro.setBounds(90, 220, 157, 20);

        tfCidade.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfCidade.setEnabled(false);
        tfCidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfCidadeActionPerformed(evt);
            }
        });
        jPanel1.add(tfCidade);
        tfCidade.setBounds(330, 220, 280, 20);

        jLabel10.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel10.setText("RG:");
        jPanel1.add(jLabel10);
        jLabel10.setBounds(300, 160, 21, 15);

        tfRG.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfRG.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfRGActionPerformed(evt);
            }
        });
        jPanel1.add(tfRG);
        tfRG.setBounds(330, 160, 280, 20);

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel11.setText("CEP*:");
        jPanel1.add(jLabel11);
        jLabel11.setBounds(50, 250, 40, 15);

        jLabel12.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel12.setText("TEL.*:");
        jPanel1.add(jLabel12);
        jLabel12.setBounds(40, 280, 50, 15);

        tfEmail.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.add(tfEmail);
        tfEmail.setBounds(90, 310, 610, 20);

        jLabel13.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel13.setText("E-MAIL:");
        jPanel1.add(jLabel13);
        jLabel13.setBounds(30, 310, 60, 15);

        tfCPF.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        try {
            tfCPF.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("###.###.###-##")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        tfCPF.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                tfCPFFocusLost(evt);
            }
        });
        tfCPF.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                tfCPFKeyPressed(evt);
            }
        });
        jPanel1.add(tfCPF);
        tfCPF.setBounds(90, 160, 153, 20);

        tfCEP.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        try {
            tfCEP.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##.###-###")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        jPanel1.add(tfCEP);
        tfCEP.setBounds(90, 250, 157, 20);

        tfTelefone.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        try {
            tfTelefone.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##)####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        jPanel1.add(tfTelefone);
        tfTelefone.setBounds(90, 280, 157, 20);

        jLabel1.setText("* Campos Obrigatórios");
        jPanel1.add(jLabel1);
        jLabel1.setBounds(40, 340, 160, 14);

        btSair1.setBackground(new java.awt.Color(0, 153, 153));
        btSair1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btSair1.setForeground(new java.awt.Color(255, 255, 255));
        btSair1.setMnemonic('S');
        btSair1.setText("SAIR");
        btSair1.setToolTipText("Sair");
        btSair1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSair1ActionPerformed(evt);
            }
        });
        jPanel1.add(btSair1);
        btSair1.setBounds(620, 380, 63, 30);

        btNovo1.setBackground(new java.awt.Color(0, 153, 153));
        btNovo1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btNovo1.setForeground(new java.awt.Color(255, 255, 255));
        btNovo1.setMnemonic('N');
        btNovo1.setText("NOVO");
        btNovo1.setToolTipText("Novo");
        btNovo1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btNovo1ActionPerformed(evt);
            }
        });
        jPanel1.add(btNovo1);
        btNovo1.setBounds(240, 380, 80, 30);

        btSalvar1.setBackground(new java.awt.Color(0, 153, 153));
        btSalvar1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btSalvar1.setForeground(new java.awt.Color(255, 255, 255));
        btSalvar1.setMnemonic('S');
        btSalvar1.setText("SALVAR");
        btSalvar1.setToolTipText("Salvar");
        btSalvar1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSalvar1ActionPerformed(evt);
            }
        });
        jPanel1.add(btSalvar1);
        btSalvar1.setBounds(330, 380, 83, 30);

        btPesquisar1.setBackground(new java.awt.Color(0, 153, 153));
        btPesquisar1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btPesquisar1.setForeground(new java.awt.Color(255, 255, 255));
        btPesquisar1.setMnemonic('P');
        btPesquisar1.setText("PESQUISAR");
        btPesquisar1.setToolTipText("Pesquisar");
        btPesquisar1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btPesquisar1ActionPerformed(evt);
            }
        });
        jPanel1.add(btPesquisar1);
        btPesquisar1.setBounds(420, 380, 103, 30);

        btExcluir1.setBackground(new java.awt.Color(0, 153, 153));
        btExcluir1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btExcluir1.setForeground(new java.awt.Color(255, 255, 255));
        btExcluir1.setMnemonic('E');
        btExcluir1.setText("EXCLUIR");
        btExcluir1.setToolTipText("Excluir");
        btExcluir1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btExcluir1ActionPerformed(evt);
            }
        });
        jPanel1.add(btExcluir1);
        btExcluir1.setBounds(530, 380, 85, 30);

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel3.setText("Paciente");
        jLabel3.setFocusable(false);
        jPanel1.add(jLabel3);
        jLabel3.setBounds(210, 40, 360, 40);

        jLFundo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sys/donto/imagens/telaM.jpg"))); // NOI18N
        jPanel1.add(jLFundo);
        jLFundo.setBounds(0, 0, 740, 440);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 740, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 440, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    private void limpaCampos(){
        tfBairro.setText("");
        tfCEP.setText("");
        tfCidade.setText("");
        tfEmail.setText("");
        tfEndereco.setText("");
        tfNome.setText("");
        tfRG.setText("");
        tfCPF.setText("");
        tfTelefone.setText("");
        paciente=new Paciente();
        btExcluir1.setEnabled(false);
    }
    private void btSair1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSair1ActionPerformed
        dispose();
    }//GEN-LAST:event_btSair1ActionPerformed

    private void btNovo1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btNovo1ActionPerformed
        limpaCampos(); //CHAMA METODO PARA LIMPAR CAMPOS
    }//GEN-LAST:event_btNovo1ActionPerformed

    private void btSalvar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSalvar1ActionPerformed
       if (Util.chkVazio(tfNome.getText(),tfCidade.getText(),tfBairro.getText(),tfCEP.getText(),
            tfEndereco.getText(),tfTelefone.getText())){

        paciente.setNome(tfNome.getText());
        paciente.setBairro(tfBairro.getText());
        paciente.setCep(tfCEP.getText().replaceAll("\\D*", "")); //retira a máscara
        paciente.setCpf(tfCPF.getText().replaceAll("\\D*", "")); //retira a máscara
        paciente.setEmail(tfEmail.getText());
        paciente.setEndereco(tfEndereco.getText());
        paciente.setRg(tfRG.getText());
        paciente.setTelefone(tfTelefone.getText().replaceAll("\\D*", "")); //retira a máscara

        PacienteDAO dao = new PacienteDAO();
        dao.salvar(paciente);
        limpaCampos();

        JOptionPane.showMessageDialog(rootPane, "Cadastro de Paciente Efetuado com Sucesso!");

        }
    }//GEN-LAST:event_btSalvar1ActionPerformed

    private void btPesquisar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btPesquisar1ActionPerformed
        limpaCampos();
        PacienteDAO dao = new PacienteDAO();
        List <Paciente> pacientes = (!tfNome.getText().isEmpty() ? dao.pesquisaDescricao(tfNome.getText())
            : dao.listar());

        PacienteTableModel ptm = new PacienteTableModel(pacientes);

        Object o = telaPesquisa.exibeTela(ptm, "Paciente");

        if (o != null){
            paciente = new Paciente();
            paciente = dao.pesquisaId(Integer.valueOf(String.valueOf(o)));

            tfNome.setText(paciente.getNome());
            tfBairro.setText(paciente.getBairro());
            tfCEP.setText(paciente.getCep());
            tfCPF.setText(paciente.getCpf());
            tfEmail.setText(paciente.getEmail());
            tfEndereco.setText(paciente.getEndereco());
            tfRG.setText(paciente.getRg());
            tfTelefone.setText(paciente.getTelefone());
            tfCidade.setText(paciente.getCidade().getDescricao());

            btExcluir1.setEnabled(true);
        }
    }//GEN-LAST:event_btPesquisar1ActionPerformed

    private void btExcluir1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btExcluir1ActionPerformed
        if (JOptionPane.showConfirmDialog(rootPane,
                    "Deseja excluir Paciente?",
                    "Excluir?", JOptionPane.YES_NO_OPTION)
                    == JOptionPane.YES_OPTION) {
            
        }        
        PacienteDAO dao = new PacienteDAO();
        dao.remover(paciente);
        limpaCampos();

        JOptionPane.showMessageDialog(rootPane, "Paciente Excluído com Sucesso!");
    }//GEN-LAST:event_btExcluir1ActionPerformed

    private void tfCPFFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_tfCPFFocusLost
        //chamando metodo da classe UTIL para validar CPF
        if (!Util.CPF(tfCPF.getText().toString().replaceAll("\\D*", ""))) {
            JOptionPane.showMessageDialog(rootPane, "CPF Inválido!",
                "sysDONTO", JOptionPane.ERROR_MESSAGE);
            tfCPF.setText("");
        } else{
            PacienteDAO dao = new PacienteDAO();
            pacientePesquisado = dao.pesquisaCpf(tfCPF.getText());
            if (pacientePesquisado != null) {
                JOptionPane.showMessageDialog(rootPane, "Paciente Já Cadastrado!");

            } else {

            }
        }// TODO add your handling code here:
    }//GEN-LAST:event_tfCPFFocusLost

    private void tfRGActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfRGActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfRGActionPerformed

    private void tfCidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfCidadeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfCidadeActionPerformed

    private void tfBairroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfBairroActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfBairroActionPerformed

    private void tfEnderecoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfEnderecoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfEnderecoActionPerformed

    private void tfNomeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfNomeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfNomeActionPerformed

    private void btPesquisarCidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btPesquisarCidadeActionPerformed
        CidadeDAO dao = new CidadeDAO();
        List<Cidade> lista = dao.listar();
        CidadeTableModel ctm = new CidadeTableModel(lista);
        Object o = telaPesquisa.exibeTela(ctm, "cidade");
        Cidade cid;
        if (o != null) {
            cid = dao.pesquisaId(Integer.valueOf(String.valueOf(o)));
            paciente.setCidade(cid);
            tfCidade.setText(cid.getDescricao());
        }       // TODO add your handling code here:
    }//GEN-LAST:event_btPesquisarCidadeActionPerformed

    private void btAdicionarCidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAdicionarCidadeActionPerformed
        telaCidade tc = new telaCidade();
        tc.setVisible(true);        // TODO add your handling code here:
    }//GEN-LAST:event_btAdicionarCidadeActionPerformed

    private void tfCPFKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tfCPFKeyPressed
        if (evt.getKeyCode() == 10) {
            tfRG.requestFocus();
        }        // TODO add your handling code here:
    }//GEN-LAST:event_tfCPFKeyPressed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(telaPaciente.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(telaPaciente.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(telaPaciente.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(telaPaciente.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new telaPaciente().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btAdicionarCidade;
    private javax.swing.JButton btExcluir1;
    private javax.swing.JButton btNovo1;
    private javax.swing.JButton btPesquisar1;
    private javax.swing.JButton btPesquisarCidade;
    private javax.swing.JButton btSair1;
    private javax.swing.JButton btSalvar1;
    private javax.swing.JLabel jLFundo;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollBar jScrollBar1;
    private javax.swing.JTextField tfBairro;
    private javax.swing.JFormattedTextField tfCEP;
    private javax.swing.JFormattedTextField tfCPF;
    private javax.swing.JTextField tfCidade;
    private javax.swing.JTextField tfEmail;
    private javax.swing.JTextField tfEndereco;
    private javax.swing.JTextField tfNome;
    private javax.swing.JTextField tfRG;
    private javax.swing.JFormattedTextField tfTelefone;
    // End of variables declaration//GEN-END:variables
}
